package com.solo.entity;

import java.util.Date;

public class Article {
    private Long id;
    private String title;
    private String content;
    private Long categoryId;
    private Long userId;
    private int views;
    private Date createdTime;
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public int getViews() {
        return views;
    }

    public void setViews(int views) {
        this.views = views;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Article(String title, String content){
        this.title = title;
        this.content = content;
    }

    public Article(long id,String title, String content){
        this.id = id;
        this.title = title;
        this.content = content;
    }

    public Article(long id){
        this.id = id;
    }

    public Article(long id,String title, String content,Long categoryId,Long userId,Date createdTime){
        this.id = id;
        this.title = title;
        this.content = content;
        this.categoryId = categoryId;
        this.userId = userId;
        this.createdTime = createdTime;
    }
}
